
/*  A Bison parser, made from yabasic.bison
 by  GNU Bison version 1.25
  */
#ifndef _LINUX_OS_				//20030820
#include "StdAfx.h"
#endif
#include "DAPScriptCore.h"
#ifdef _LINUX_OS_
#define ERROR    0							//20030820
#endif
#define YYBISON 1  /* Identify Bison output.  */

#define	NUMBER	258
#define	STRING	259
#define	LOCALSYM	260
#define	LOCALSTR	261
#define	GLOBESYM	262
#define	GLOBESTR	263
#define	SEP	264
#define	SUB	265
#define	FUNC	266
#define	ENDFUNC	267
#define	CALL	268
#define	RETURN	269
#define	ARG	270
#define	END	271
#define	EOFILE	272
#define	INTEGER	273
#define	REAL	274
#define	DISCRETE	275
#define	MESSAGE	276
#define	COLOR	277
#define	DIM	278
#define	TYPE	279
#define	ENDTYPE	280
#define	CUSTOMTYPE	281
#define	FOR	282
#define	TO	283
#define	STEP	284
#define	NEXT	285
#define	WHILE	286
#define	ENDWHILE	287
#define	IF	288
#define	THEN	289
#define	ELSE	290
#define	ENDIF	291
#define	SWITCH	292
#define	ENDSWITCH	293
#define	CASE	294
#define	DEFAULT	295
#define	CONTINUE	296
#define	BREAK	297
#define	AND	298
#define	OR	299
#define	NOT	300
#define	NE	301
#define	LE	302
#define	GE	303
#define	LT	304
#define	GTT	305
#define	EQ	306
#define	SHL	307
#define	SHR	308
#define	MOD	309
#define	POINTER	310
#define	UMINUS	311


/*
     Yabasic --- a tiny integrated Basic Compiler/Interpreter

     BISON - part
     
*/

#include <malloc.h>

#include "Actions.h"


typedef union 
{
  double number;        /* double number 	*/
  char *string;         /* quoted string 	*/
  char *localsym;       /* general symbol 	*/
  char *globesym;       /* string symbol 	*/
  int token;            /* token of command 	*/
} YYSTYPE;
#include <stdio.h>

#ifndef __cplusplus
#ifndef __STDC__
#define const
#endif
#endif



#define	YYFINAL		330
#define	YYFLAG		-32768
#define	YYNTBASE	72

#define YYTRANSLATE(x) ((unsigned)(x) <= 311 ? yytranslate[x] : 140)

static const char yytranslate[] = {     0,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,    56,     2,    65,
    66,    60,    59,    67,    58,     2,    61,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,    71,     2,     2,
    70,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
    68,     2,    69,    62,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,    57,     2,    63,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     1,     2,     3,     4,     5,
     6,     7,     8,     9,    10,    11,    12,    13,    14,    15,
    16,    17,    18,    19,    20,    21,    22,    23,    24,    25,
    26,    27,    28,    29,    30,    31,    32,    33,    34,    35,
    36,    37,    38,    39,    40,    41,    42,    43,    44,    45,
    46,    47,    48,    49,    50,    51,    52,    53,    54,    55,
    64
};

#if YYDEBUG != 0
static const short yyprhs[] = {     0,
     0,     3,     4,     9,    12,    15,    18,    19,    25,    26,
    33,    34,    35,    36,    45,    46,    49,    54,    56,    57,
    62,    63,    65,    67,    69,    71,    73,    75,    77,    79,
    81,    83,    85,    87,    89,    91,    92,    96,    98,   101,
   104,   107,   110,   113,   115,   117,   119,   121,   123,   125,
   129,   133,   134,   140,   141,   149,   150,   156,   157,   165,
   167,   171,   176,   179,   183,   187,   191,   195,   202,   209,
   211,   213,   215,   220,   225,   229,   233,   237,   244,   251,
   257,   259,   261,   263,   267,   271,   276,   281,   285,   289,
   293,   297,   301,   305,   309,   313,   317,   321,   324,   327,
   329,   330,   334,   336,   340,   342,   343,   347,   351,   355,
   356,   362,   363,   369,   374,   379,   380,   382,   386,   388,
   392,   394,   398,   400,   404,   406,   410,   412,   416,   417,
   418,   419,   433,   435,   437,   438,   441,   443,   446,   449,
   450,   452,   453,   454,   455,   465,   466,   469,   471,   473,
   477,   480,   484,   488,   492,   496,   500,   504,   508,   512,
   516,   520,   522,   523,   524,   525,   533,   535,   537,   538,
   539,   547,   549,   552,   553,   559,   560,   564,   566
};

static const short yyrhs[] = {    74,
    17,     0,     0,    10,    73,    82,    17,     0,   103,    17,
     0,   101,    17,     0,   126,    17,     0,     0,    11,    75,
    77,    82,    12,     0,     0,    74,    11,    76,    77,    82,
    12,     0,     0,     0,     0,    88,     5,    78,    65,    79,
    81,    80,    66,     0,     0,    88,     5,     0,    81,    67,
    88,     5,     0,    84,     0,     0,    84,    83,     9,    82,
     0,     0,    87,     0,    90,     0,    97,     0,    99,     0,
   100,     0,   102,     0,   106,     0,   112,     0,   127,     0,
   120,     0,   132,     0,    86,     0,    42,     0,    41,     0,
     0,    15,    85,    87,     0,    14,     0,    14,     5,     0,
    14,     6,     0,    14,     7,     0,    14,     8,     0,    88,
    89,     0,    18,     0,    19,     0,    20,     0,    21,     0,
    22,     0,     5,     0,    89,    67,     5,     0,    23,    88,
    91,     0,     0,     5,    68,    92,    96,    69,     0,     0,
    91,    67,     5,    68,    93,    96,    69,     0,     0,     7,
    68,    94,    96,    66,     0,     0,    91,    67,     7,    68,
    95,    96,    69,     0,     3,     0,    96,    67,     3,     0,
    24,     5,    98,    25,     0,    87,     9,     0,    87,     9,
    98,     0,    26,     5,    89,     0,     6,    70,   101,     0,
     8,    70,   101,     0,     6,    68,   105,    69,    70,   101,
     0,     8,    68,   105,    69,    70,   101,     0,     4,     0,
     6,     0,     8,     0,     6,    68,   105,    69,     0,     8,
    68,   105,    69,     0,    65,   101,    66,     0,     5,    70,
   103,     0,     7,    70,   103,     0,     5,    68,   105,    69,
    70,   103,     0,     7,    68,   105,    69,    70,   103,     0,
     5,    55,     5,    70,   103,     0,     3,     0,     5,     0,
     7,     0,     5,    55,     5,     0,    65,   103,    66,     0,
     5,    68,   105,    69,     0,     7,    68,   105,    69,     0,
   103,    59,   103,     0,   103,    58,   103,     0,   103,    60,
   103,     0,   103,    61,   103,     0,   103,    54,   103,     0,
   103,    62,   103,     0,   103,    56,   103,     0,   103,    57,
   103,     0,   103,    52,   103,     0,   103,    53,   103,     0,
    63,   103,     0,    58,   103,     0,   110,     0,     0,    13,
   104,   110,     0,   103,     0,   105,    67,   103,     0,   110,
     0,     0,    13,   107,   110,     0,     6,    70,   110,     0,
     8,    70,   110,     0,     0,     6,    70,    13,   108,   110,
     0,     0,     8,    70,    13,   109,   110,     0,     5,    65,
   111,    66,     0,     7,    65,   111,    66,     0,     0,     3,
     0,   111,    67,     3,     0,     4,     0,   111,    67,     4,
     0,     5,     0,   111,    67,     5,     0,     6,     0,   111,
    67,     6,     0,     7,     0,   111,    67,     7,     0,     8,
     0,   111,    67,     8,     0,     0,     0,     0,    27,     5,
    70,   103,   113,    28,   103,   117,   114,    82,   115,   116,
   119,     0,    30,     0,    17,     0,     0,    29,   118,     0,
     3,     0,    59,     3,     0,    58,     3,     0,     0,     5,
     0,     0,     0,     0,    33,   126,   121,    34,    82,   122,
   124,   123,   125,     0,     0,    35,    82,     0,    36,     0,
    17,     0,    65,   126,    66,     0,    45,   126,     0,   126,
    44,   126,     0,   126,    43,   126,     0,   103,    51,   103,
     0,   103,    46,   103,     0,   103,    49,   103,     0,   103,
    47,   103,     0,   103,    50,   103,     0,   103,    48,   103,
     0,   101,    51,   101,     0,   101,    46,   101,     0,   103,
     0,     0,     0,     0,    31,   128,   126,   129,    82,   130,
   131,     0,    32,     0,    17,     0,     0,     0,    37,   133,
   103,   134,   135,   138,   139,     0,   136,     0,   136,   135,
     0,     0,    39,   118,    71,   137,    82,     0,     0,    40,
    71,    82,     0,    38,     0,    17,     0
};

#endif

#if YYDEBUG != 0
static const short yyrline[] = { 0,
    70,    71,    71,    72,    73,    74,    77,    77,    78,    78,
    81,    82,    82,    83,    86,    87,    88,    91,    92,    93,
    97,    98,    99,   100,   101,   102,   103,   104,   105,   106,
   107,   108,   109,   110,   111,   112,   113,   117,   118,   119,
   120,   121,   124,   127,   128,   129,   130,   131,   135,   136,
   140,   144,   144,   145,   145,   146,   146,   147,   147,   151,
   152,   156,   162,   163,   167,   170,   171,   172,   173,   177,
   178,   179,   180,   181,   182,   186,   187,   188,   189,   190,
   194,   195,   196,   197,   198,   199,   200,   201,   202,   203,
   204,   205,   206,   207,   208,   209,   210,   211,   212,   213,
   214,   214,   217,   218,   221,   222,   223,   223,   224,   225,
   225,   226,   226,   230,   231,   235,   236,   237,   238,   239,
   240,   241,   242,   243,   244,   245,   246,   247,   251,   258,
   266,   275,   279,   280,   283,   284,   288,   289,   290,   294,
   300,   315,   320,   326,   328,   331,   332,   336,   337,   340,
   341,   342,   343,   344,   345,   346,   347,   348,   349,   350,
   351,   352,   356,   358,   363,   368,   371,   372,   375,   375,
   377,   388,   389,   393,   398,   402,   403,   406,   407
};
#endif


#if YYDEBUG != 0 || defined (YYERROR_VERBOSE)

static const char * const yytname[] = {   "$","error","$undefined.","NUMBER",
"STRING","LOCALSYM","LOCALSTR","GLOBESYM","GLOBESTR","SEP","SUB","FUNC","ENDFUNC",
"CALL","RETURN","ARG","END","EOFILE","INTEGER","REAL","DISCRETE","MESSAGE","COLOR",
"DIM","TYPE","ENDTYPE","CUSTOMTYPE","FOR","TO","STEP","NEXT","WHILE","ENDWHILE",
"IF","THEN","ELSE","ENDIF","SWITCH","ENDSWITCH","CASE","DEFAULT","CONTINUE",
"BREAK","AND","OR","NOT","NE","LE","GE","LT","GTT","EQ","SHL","SHR","MOD","POINTER",
"'&'","'|'","'-'","'+'","'*'","'/'","'^'","'~'","UMINUS","'('","')'","','","'['",
"']'","'='","':'","program","@1","script_list","@2","@3","script_fun_def","@4",
"@5","@6","paralist","statement_list","@7","statement","@8","return_symbol",
"variable_def","data_type","var_list","dim_def","dimlist","@9","@10","@11","@12",
"countlist","struct_def","mem_list","struct_var","string_assignment","string_expression",
"assignment","expression","@13","indexlist","function_operate","@14","@15","@16",
"function","arglist","for_loop","@17","@18","@19","next_or_eofile","step_part",
"const","next_symbol","if_clause","@20","@21","@22","else_part","endif_or_eof",
"comparison","while_loop","@23","@24","@25","endwhile_or_eofile","switch_case",
"@26","@27","case_list","one_case","@28","default_case","endswitch_or_eof", NULL
};
#endif

static const short yyr1[] = {     0,
    72,    73,    72,    72,    72,    72,    75,    74,    76,    74,
    78,    79,    80,    77,    81,    81,    81,    82,    83,    82,
    84,    84,    84,    84,    84,    84,    84,    84,    84,    84,
    84,    84,    84,    84,    84,    85,    84,    86,    86,    86,
    86,    86,    87,    88,    88,    88,    88,    88,    89,    89,
    90,    92,    91,    93,    91,    94,    91,    95,    91,    96,
    96,    97,    98,    98,    99,   100,   100,   100,   100,   101,
   101,   101,   101,   101,   101,   102,   102,   102,   102,   102,
   103,   103,   103,   103,   103,   103,   103,   103,   103,   103,
   103,   103,   103,   103,   103,   103,   103,   103,   103,   103,
   104,   103,   105,   105,   106,   107,   106,   106,   106,   108,
   106,   109,   106,   110,   110,   111,   111,   111,   111,   111,
   111,   111,   111,   111,   111,   111,   111,   111,   113,   114,
   115,   112,   116,   116,   117,   117,   118,   118,   118,   119,
   119,   121,   122,   123,   120,   124,   124,   125,   125,   126,
   126,   126,   126,   126,   126,   126,   126,   126,   126,   126,
   126,   126,   128,   129,   130,   127,   131,   131,   133,   134,
   132,   135,   135,   137,   136,   138,   138,   139,   139
};

static const short yyr2[] = {     0,
     2,     0,     4,     2,     2,     2,     0,     5,     0,     6,
     0,     0,     0,     8,     0,     2,     4,     1,     0,     4,
     0,     1,     1,     1,     1,     1,     1,     1,     1,     1,
     1,     1,     1,     1,     1,     0,     3,     1,     2,     2,
     2,     2,     2,     1,     1,     1,     1,     1,     1,     3,
     3,     0,     5,     0,     7,     0,     5,     0,     7,     1,
     3,     4,     2,     3,     3,     3,     3,     6,     6,     1,
     1,     1,     4,     4,     3,     3,     3,     6,     6,     5,
     1,     1,     1,     3,     3,     4,     4,     3,     3,     3,
     3,     3,     3,     3,     3,     3,     3,     2,     2,     1,
     0,     3,     1,     3,     1,     0,     3,     3,     3,     0,
     5,     0,     5,     4,     4,     0,     1,     3,     1,     3,
     1,     3,     1,     3,     1,     3,     1,     3,     0,     0,
     0,    13,     1,     1,     0,     2,     1,     2,     2,     0,
     1,     0,     0,     0,     9,     0,     2,     1,     1,     3,
     2,     3,     3,     3,     3,     3,     3,     3,     3,     3,
     3,     1,     0,     0,     0,     7,     1,     1,     0,     0,
     7,     1,     2,     0,     5,     0,     3,     1,     1
};

static const short yydefact[] = {     0,
    81,    70,    82,    71,    83,    72,     2,     7,   101,     0,
     0,     0,     0,     0,     0,   162,   100,     0,     0,   116,
     0,     0,   116,     0,     0,    21,     0,     0,     0,   162,
   151,     0,    99,    98,     0,   162,     0,     9,     1,     5,
     0,     0,     4,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,     0,     0,     0,     0,     0,     6,
     0,     0,    84,   117,   119,   121,   123,   125,   127,     0,
   103,     0,     0,     0,     0,     0,     0,     0,     0,     0,
   106,    38,    36,    44,    45,    46,    47,    48,     0,     0,
     0,     0,   163,     0,   169,    35,    34,     0,    18,    33,
    22,     0,    23,    24,    25,    26,    27,    28,   105,    29,
    31,    30,    32,    21,     0,     0,     0,   102,     0,    75,
    85,   150,     0,     0,   161,   160,   155,   157,   159,   156,
   158,   154,    96,    97,    92,    94,    95,    89,    88,    90,
    91,    93,   153,   152,   114,     0,     0,    86,    73,   115,
    87,    74,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,    39,    40,    41,    42,     0,     0,     0,     0,
     0,     0,   142,     0,     3,     0,    49,    43,     0,    11,
    21,     0,   118,   120,   122,   124,   126,   128,   104,     0,
     0,    76,     0,   110,    66,   108,     0,    77,     0,   112,
    67,   109,   107,    37,     0,     0,    51,     0,     0,    65,
     0,   164,     0,   170,    21,     0,     8,     0,     0,     0,
     0,     0,     0,     0,     0,     0,    52,    56,     0,    63,
    62,   129,    21,    21,     0,    20,    50,    12,    10,    80,
     0,     0,   111,     0,     0,   113,     0,     0,     0,     0,
    64,     0,   165,   143,     0,   176,   172,    15,    78,    68,
    79,    69,    60,     0,     0,    54,    58,     0,     0,   146,
   137,     0,     0,     0,     0,     0,   173,    13,     0,     0,
    53,    57,     0,     0,   135,   168,   167,   166,    21,   144,
   139,   138,   174,    21,   179,   178,   171,     0,     0,    16,
    61,     0,     0,     0,   130,   147,     0,    21,   177,     0,
    14,    55,    59,   136,    21,   149,   148,   145,   175,    17,
   131,     0,   134,   133,   140,   141,   132,     0,     0,     0
};

static const short yydefgoto[] = {   328,
    26,    14,    27,   123,   114,   218,   258,   299,   278,    98,
   176,    99,   167,   100,   101,   102,   178,   103,   207,   247,
   283,   248,   284,   264,   104,   209,   105,   106,    29,   107,
    71,    28,    72,   108,   162,   223,   226,    17,    70,   110,
   252,   315,   322,   325,   305,   274,   327,   111,   213,   270,
   307,   290,   318,    18,   112,   172,   233,   269,   288,   113,
   174,   235,   256,   257,   308,   276,   297
};

static const short yypact[] = {    69,
-32768,-32768,    61,   -49,   -39,   -41,-32768,-32768,-32768,   105,
    27,    27,   105,    80,    -7,   179,-32768,    -8,    56,   386,
    27,    27,   386,    27,    27,   272,   383,   114,    82,   306,
-32768,    27,-32768,-32768,   -23,   285,    40,-32768,-32768,-32768,
    16,    16,-32768,    27,    27,    27,    27,    27,    27,    27,
    27,    27,    27,    27,    27,    27,    27,    27,    27,-32768,
   105,   105,-32768,-32768,-32768,-32768,-32768,-32768,-32768,    95,
   317,    73,    77,   205,    90,   102,    52,   104,    33,   113,
-32768,   159,-32768,-32768,-32768,-32768,-32768,-32768,   383,    59,
    63,   125,-32768,   105,-32768,-32768,-32768,    83,   138,-32768,
-32768,   149,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,   272,   153,   112,   123,-32768,   196,-32768,
-32768,-32768,   383,    16,-32768,-32768,   317,   317,   317,   317,
   317,   317,   326,   326,   133,   257,   257,    91,    91,   133,
   133,-32768,-32768,   163,-32768,   392,    27,-32768,-32768,-32768,
-32768,-32768,   208,    27,    27,    27,   186,    27,    27,    27,
   210,   114,-32768,-32768,-32768,-32768,   383,   171,   383,   149,
   140,   105,    50,    27,-32768,   234,-32768,   152,   212,-32768,
   272,   181,-32768,-32768,-32768,-32768,-32768,-32768,   317,   190,
   118,   317,   134,-32768,-32768,-32768,   135,   317,   142,-32768,
-32768,-32768,-32768,-32768,   213,   220,   198,   264,   251,   152,
    27,    50,   266,   317,   272,   296,-32768,   237,   292,    27,
   236,   238,   114,   240,   242,   114,-32768,-32768,   215,   383,
-32768,   317,   272,   272,   284,-32768,-32768,-32768,-32768,   317,
    27,    16,-32768,    27,    16,-32768,   304,   304,   280,   281,
-32768,   312,-32768,-32768,    28,   310,   284,   383,   317,-32768,
   317,-32768,-32768,   177,   217,-32768,-32768,    27,    72,   337,
-32768,   358,   378,   335,   336,    -1,-32768,   341,   404,   407,
-32768,-32768,   304,   304,   268,-32768,-32768,-32768,   272,-32768,
-32768,-32768,-32768,   272,-32768,-32768,-32768,   383,   345,-32768,
-32768,   192,   197,    28,-32768,-32768,    79,   272,-32768,   408,
-32768,-32768,-32768,-32768,   272,-32768,-32768,-32768,-32768,-32768,
-32768,   108,-32768,-32768,   409,-32768,-32768,   412,   415,-32768
};

static const short yypgoto[] = {-32768,
-32768,-32768,-32768,-32768,   293,-32768,-32768,-32768,-32768,  -110,
-32768,-32768,-32768,-32768,  -152,   -24,   247,-32768,-32768,-32768,
-32768,-32768,-32768,  -242,-32768,   188,-32768,-32768,    25,-32768,
     1,-32768,   -17,-32768,-32768,-32768,-32768,   -26,   396,-32768,
-32768,-32768,-32768,-32768,-32768,   116,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,     8,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,   164,-32768,-32768,-32768,-32768
};


#define	YYLAST		421


static const short yytable[] = {   109,
    16,   118,   115,   179,    73,   265,    75,    76,    60,    40,
    30,    33,    34,    36,   204,   295,   208,    31,    22,     2,
    37,     4,    41,     6,    15,    23,    25,    42,    24,     1,
   271,     3,   119,     5,    61,    62,   296,    35,    41,     9,
   302,   303,   120,    42,   127,   128,   129,   130,   131,   132,
   133,   134,   135,   136,   137,   138,   139,   140,   141,   142,
    63,    30,    30,   169,   168,   125,   126,   170,   143,   144,
   219,     1,     2,     3,     4,     5,     6,   208,     7,     8,
   124,     9,    61,    62,    11,   272,   273,   109,   286,    12,
    38,    32,    61,    62,    30,   316,    39,    23,   115,   175,
   158,   173,   159,   287,   236,   122,   153,     1,     2,     3,
     4,     5,     6,    10,   317,    19,    20,     9,   116,   154,
   117,   155,   253,   254,   323,    20,    11,    41,    21,   171,
   196,    12,    42,    13,   202,   203,   191,   324,   193,   147,
   197,   148,   199,   147,    52,   149,   -19,   189,   182,    10,
    57,    58,    59,   177,   109,   192,   147,   180,   151,   198,
   145,   146,    11,   163,   164,   165,   166,    12,   147,    13,
   152,   156,    30,   157,   214,   205,    20,   206,   306,   212,
   160,   195,   161,   309,   147,   201,   221,    23,   109,     2,
   116,     4,   117,     6,    59,    43,   243,   319,   194,   246,
   147,   147,   222,   224,   321,    61,   109,   109,   147,   211,
   225,   232,   190,     2,   116,     4,   117,     6,   216,   249,
   240,   250,   200,   217,    44,    45,    46,    47,    48,    49,
    50,    51,    52,   279,    53,    54,    55,    56,    57,    58,
    59,   259,   215,   280,   261,   281,   120,    50,    51,    52,
   124,    53,    54,    55,    56,    57,    58,    59,   280,   220,
   312,   121,   109,   280,   229,   313,   260,   109,   285,   262,
   150,   146,   230,   310,   124,   231,    77,    78,    79,    80,
   227,   109,   282,   280,    81,    82,    83,   228,   109,    84,
    85,    86,    87,    88,    89,    90,   304,    91,    92,   234,
   237,   238,    93,   239,    94,   241,   263,   242,    95,   244,
    52,   245,    96,    97,    55,    56,    57,    58,    59,    50,
    51,    52,   255,    53,    54,    55,    56,    57,    58,    59,
    44,    45,    46,    47,    48,    49,    50,    51,    52,   268,
    53,    54,    55,    56,    57,    58,    59,   266,   267,   275,
   121,    44,    45,    46,    47,    48,    49,    50,    51,    52,
   291,    53,    54,    55,    56,    57,    58,    59,    50,    51,
    52,   289,    53,    54,    55,    56,    57,    58,    59,    52,
   292,    53,    54,    55,    56,    57,    58,    59,    64,    65,
    66,    67,    68,    69,   183,   184,   185,   186,   187,   188,
    84,    85,    86,    87,    88,   293,   294,   298,   300,   301,
   311,   329,   320,   326,   330,   181,   210,   251,    74,   314,
   277
};

static const short yycheck[] = {    26,
     0,    28,    27,   114,    22,   248,    24,    25,    17,    17,
    10,    11,    12,    13,   167,    17,   169,    10,    68,     4,
    13,     6,    46,     8,     0,    65,    68,    51,    68,     3,
     3,     5,    32,     7,    43,    44,    38,    13,    46,    13,
   283,   284,    66,    51,    44,    45,    46,    47,    48,    49,
    50,    51,    52,    53,    54,    55,    56,    57,    58,    59,
     5,    61,    62,     5,    89,    41,    42,     5,    61,    62,
   181,     3,     4,     5,     6,     7,     8,   230,    10,    11,
    65,    13,    43,    44,    58,    58,    59,   114,    17,    63,
    11,    65,    43,    44,    94,    17,    17,    65,   123,    17,
    68,    94,    70,    32,   215,    66,    55,     3,     4,     5,
     6,     7,     8,    45,    36,    55,    65,    13,     5,    68,
     7,    70,   233,   234,    17,    65,    58,    46,    68,     5,
   157,    63,    51,    65,   161,   162,   154,    30,   156,    67,
   158,    69,   160,    67,    54,    69,     9,   147,   124,    45,
    60,    61,    62,     5,   181,   155,    67,     5,    69,   159,
    66,    67,    58,     5,     6,     7,     8,    63,    67,    65,
    69,    68,   172,    70,   174,     5,    65,     7,   289,   172,
    68,   157,    70,   294,    67,   161,    69,    65,   215,     4,
     5,     6,     7,     8,    62,    17,   223,   308,    13,   226,
    67,    67,    69,    69,   315,    43,   233,   234,    67,    70,
    69,   211,     5,     4,     5,     6,     7,     8,    67,     5,
   220,     7,    13,    12,    46,    47,    48,    49,    50,    51,
    52,    53,    54,   258,    56,    57,    58,    59,    60,    61,
    62,   241,     9,    67,   244,    69,    66,    52,    53,    54,
    65,    56,    57,    58,    59,    60,    61,    62,    67,    70,
    69,    66,   289,    67,    67,    69,   242,   294,   268,   245,
    66,    67,     9,   298,    65,    25,     5,     6,     7,     8,
    68,   308,    66,    67,    13,    14,    15,    68,   315,    18,
    19,    20,    21,    22,    23,    24,    29,    26,    27,    34,
     5,    65,    31,    12,    33,    70,     3,    70,    37,    70,
    54,    70,    41,    42,    58,    59,    60,    61,    62,    52,
    53,    54,    39,    56,    57,    58,    59,    60,    61,    62,
    46,    47,    48,    49,    50,    51,    52,    53,    54,    28,
    56,    57,    58,    59,    60,    61,    62,    68,    68,    40,
    66,    46,    47,    48,    49,    50,    51,    52,    53,    54,
     3,    56,    57,    58,    59,    60,    61,    62,    52,    53,
    54,    35,    56,    57,    58,    59,    60,    61,    62,    54,
     3,    56,    57,    58,    59,    60,    61,    62,     3,     4,
     5,     6,     7,     8,     3,     4,     5,     6,     7,     8,
    18,    19,    20,    21,    22,    71,    71,    67,     5,     3,
    66,     0,     5,     5,     0,   123,   170,   230,    23,   304,
   257
};
/* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */


/* Skeleton output parser for bison,
   Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */

/* As a special exception, when this file is copied by Bison into a
   Bison output file, you may use that output file without restriction.
   This special exception was added by the Free Software Foundation
   in version 1.24 of Bison.  */

#ifndef alloca
#ifdef __GNUC__
#define alloca __builtin_alloca
#else /* not GNU C.  */
#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
#include <alloca.h>
#else /* not sparc */
#if defined (MSDOS) && !defined (__TURBOC__)
#include <malloc.h>
#else /* not MSDOS, or __TURBOC__ */
#if defined(_AIX)
#include <malloc.h>
 #pragma alloca
#else /* not MSDOS, __TURBOC__, or _AIX */
#ifdef __hpux
#ifdef __cplusplus
extern "C" {
void *alloca (unsigned int);
};
#else /* not __cplusplus */
void *alloca ();
#endif /* not __cplusplus */
#endif /* __hpux */
#endif /* not _AIX */
#endif /* not MSDOS, or __TURBOC__ */
#endif /* not sparc.  */
#endif /* not GNU C.  */
#endif /* alloca not defined.  */

/* This is the parser code that is written into each bison parser
  when the %semantic_parser declaration is not specified in the grammar.
  It was written by Richard Stallman by simplifying the hairy parser
  used when %semantic_parser is specified.  */

/* Note: there must be only one dollar sign in this file.
   It is replaced by the list of actions, each action
   as one case of the switch.  */

#define yyerrok		(yyerrstatus = 0)
#define yyclearin	(yychar = YYEMPTY)
#define YYEMPTY		-2
#define YYEOF		0
#define YYACCEPT	return(0)
#define YYABORT 	return(1)
#define YYERROR		goto yyerrlab1
/* Like YYERROR except do call yyerror.
   This remains here temporarily to ease the
   transition to the new meaning of YYERROR, for GCC.
   Once GCC version 2 has supplanted version 1, this can go.  */
#define YYFAIL		goto yyerrlab
#define YYRECOVERING()  (!!yyerrstatus)
#define YYBACKUP(token, value) \
do								\
  if (yychar == YYEMPTY && yylen == 1)				\
    { yychar = (token), yylval = (value);			\
      yychar1 = YYTRANSLATE (yychar);				\
      YYPOPSTACK;						\
      goto yybackup;						\
    }								\
  else								\
    { yyerror ("syntax error: cannot back up"); YYERROR; }	\
while (0)

#define YYTERROR	1
#define YYERRCODE	256

#ifndef YYPURE
#define YYLEX		yylex()
#endif

#ifdef YYPURE
#ifdef YYLSP_NEEDED
#ifdef YYLEX_PARAM
#define YYLEX		yylex(&yylval, &yylloc, YYLEX_PARAM)
#else
#define YYLEX		yylex(&yylval, &yylloc)
#endif
#else /* not YYLSP_NEEDED */
#ifdef YYLEX_PARAM
#define YYLEX		yylex(&yylval, YYLEX_PARAM)
#else
#define YYLEX		yylex(&yylval)
#endif
#endif /* not YYLSP_NEEDED */
#endif

/* If nonreentrant, generate the variables here */

#ifndef YYPURE

int	yychar;			/*  the lookahead symbol		*/
YYSTYPE	yylval;			/*  the semantic value of the		*/
				/*  lookahead symbol			*/

#ifdef YYLSP_NEEDED
YYLTYPE yylloc;			/*  location data for the lookahead	*/
				/*  symbol				*/
#endif

int yynerrs;			/*  number of parse errors so far       */
#endif  /* not YYPURE */

#if YYDEBUG != 0
int yydebug;			/*  nonzero means print parse trace	*/
/* Since this is uninitialized, it does not stop multiple parsers
   from coexisting.  */
#endif

/*  YYINITDEPTH indicates the initial size of the parser's stacks	*/

#ifndef	YYINITDEPTH
#define YYINITDEPTH 200
#endif

/*  YYMAXDEPTH is the maximum size the stacks can grow to
    (effective only if the built-in stack extension method is used).  */

#if YYMAXDEPTH == 0
#undef YYMAXDEPTH
#endif

#ifndef YYMAXDEPTH
#define YYMAXDEPTH 10000
#endif

/* Prevent warning if -Wstrict-prototypes.  */
#ifdef __GNUC__
int yyparse (void);
#endif

#if __GNUC__ > 1		/* GNU C and GNU C++ define this.  */
#define __yy_memcpy(TO,FROM,COUNT)	__builtin_memcpy(TO,FROM,COUNT)
#else				/* not GNU C or C++ */
#ifndef __cplusplus

/* This is the most reliable way to avoid incompatibilities
   in available built-in functions on various systems.  */
static void
__yy_memcpy (to, from, count)
     char *to;
     char *from;
     int count;
{
  register char *f = from;
  register char *t = to;
  register int i = count;

  while (i-- > 0)
    *t++ = *f++;
}

#else /* __cplusplus */

/* This is the most reliable way to avoid incompatibilities
   in available built-in functions on various systems.  */
static void
__yy_memcpy (char *to, char *from, int count)
{
  register char *f = from;
  register char *t = to;
  register int i = count;

  while (i-- > 0)
    *t++ = *f++;
}

#endif
#endif



/* The user can define YYPARSE_PARAM as the name of an argument to be passed
   into yyparse.  The argument should have type void *.
   It should actually point to an object.
   Grammar actions can access the variable by casting it
   to the proper pointer type.  */

#ifdef YYPARSE_PARAM
#ifdef __cplusplus
#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
#define YYPARSE_PARAM_DECL
#else /* not __cplusplus */
#define YYPARSE_PARAM_ARG YYPARSE_PARAM
#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
#endif /* not __cplusplus */
#else /* not YYPARSE_PARAM */
#define YYPARSE_PARAM_ARG
#define YYPARSE_PARAM_DECL
#endif /* not YYPARSE_PARAM */

int
yyparse(YYPARSE_PARAM_ARG)
     YYPARSE_PARAM_DECL
{
  register int yystate;
  register int yyn;
  register short *yyssp;
  register YYSTYPE *yyvsp;
  int yyerrstatus;	/*  number of tokens to shift before error messages enabled */
  int yychar1 = 0;		/*  lookahead token as an internal (translated) token number */

  short	yyssa[YYINITDEPTH];	/*  the state stack			*/
  YYSTYPE yyvsa[YYINITDEPTH];	/*  the semantic value stack		*/

  short *yyss = yyssa;		/*  refer to the stacks thru separate pointers */
  YYSTYPE *yyvs = yyvsa;	/*  to allow yyoverflow to reallocate them elsewhere */

#ifdef YYLSP_NEEDED
  YYLTYPE yylsa[YYINITDEPTH];	/*  the location stack			*/
  YYLTYPE *yyls = yylsa;
  YYLTYPE *yylsp;

#define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
#else
#define YYPOPSTACK   (yyvsp--, yyssp--)
#endif

  int yystacksize = YYINITDEPTH;

#ifdef YYPURE
  int yychar;
  YYSTYPE yylval;
  int yynerrs;
#ifdef YYLSP_NEEDED
  YYLTYPE yylloc;
#endif
#endif

  YYSTYPE yyval;		/*  the variable used to return		*/
				/*  semantic values from the action	*/
				/*  routines				*/

  int yylen;

#if YYDEBUG != 0
  if (yydebug)
    fprintf(stderr, "Starting parse\n");
#endif

  yystate = 0;
  yyerrstatus = 0;
  yynerrs = 0;
  yychar = YYEMPTY;		/* Cause a token to be read.  */

  /* Initialize stack pointers.
     Waste one element of value and location stack
     so that they stay on the same level as the state stack.
     The wasted elements are never initialized.  */

  yyssp = yyss - 1;
  yyvsp = yyvs;
#ifdef YYLSP_NEEDED
  yylsp = yyls;
#endif

/* Push a new state, which is found in  yystate  .  */
/* In all cases, when you get here, the value and location stacks
   have just been pushed. so pushing a state here evens the stacks.  */
yynewstate:

  *++yyssp = yystate;

  if (yyssp >= yyss + yystacksize - 1)
    {
      /* Give user a chance to reallocate the stack */
      /* Use copies of these so that the &'s don't force the real ones into memory. */
      YYSTYPE *yyvs1 = yyvs;
      short *yyss1 = yyss;
#ifdef YYLSP_NEEDED
      YYLTYPE *yyls1 = yyls;
#endif

      /* Get the current used size of the three stacks, in elements.  */
      int size = yyssp - yyss + 1;

#ifdef yyoverflow
      /* Each stack pointer address is followed by the size of
	 the data in use in that stack, in bytes.  */
#ifdef YYLSP_NEEDED
      /* This used to be a conditional around just the two extra args,
	 but that might be undefined if yyoverflow is a macro.  */
      yyoverflow("parser stack overflow",
		 &yyss1, size * sizeof (*yyssp),
		 &yyvs1, size * sizeof (*yyvsp),
		 &yyls1, size * sizeof (*yylsp),
		 &yystacksize);
#else
      yyoverflow("parser stack overflow",
		 &yyss1, size * sizeof (*yyssp),
		 &yyvs1, size * sizeof (*yyvsp),
		 &yystacksize);
#endif

      yyss = yyss1; yyvs = yyvs1;
#ifdef YYLSP_NEEDED
      yyls = yyls1;
#endif
#else /* no yyoverflow */
      /* Extend the stack our own way.  */
      if (yystacksize >= YYMAXDEPTH)
	{
	  yyerror("parser stack overflow");
	  return 2;
	}
      yystacksize *= 2;
      if (yystacksize > YYMAXDEPTH)
	yystacksize = YYMAXDEPTH;
      yyss = (short *) alloca (yystacksize * sizeof (*yyssp));
      __yy_memcpy ((char *)yyss, (char *)yyss1, size * sizeof (*yyssp));
      yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
      __yy_memcpy ((char *)yyvs, (char *)yyvs1, size * sizeof (*yyvsp));
#ifdef YYLSP_NEEDED
      yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
      __yy_memcpy ((char *)yyls, (char *)yyls1, size * sizeof (*yylsp));
#endif
#endif /* no yyoverflow */

      yyssp = yyss + size - 1;
      yyvsp = yyvs + size - 1;
#ifdef YYLSP_NEEDED
      yylsp = yyls + size - 1;
#endif

#if YYDEBUG != 0
      if (yydebug)
	fprintf(stderr, "Stack size increased to %d\n", yystacksize);
#endif

      if (yyssp >= yyss + yystacksize - 1)
	YYABORT;
    }

#if YYDEBUG != 0
  if (yydebug)
    fprintf(stderr, "Entering state %d\n", yystate);
#endif

  goto yybackup;
 yybackup:

/* Do appropriate processing given the current state.  */
/* Read a lookahead token if we need one and don't already have one.  */
/* yyresume: */

  /* First try to decide what to do without reference to lookahead token.  */

  yyn = yypact[yystate];
  if (yyn == YYFLAG)
    goto yydefault;

  /* Not known => get a lookahead token if don't already have one.  */

  /* yychar is either YYEMPTY or YYEOF
     or a valid token in external form.  */

  if (yychar == YYEMPTY)
    {
#if YYDEBUG != 0
      if (yydebug)
	fprintf(stderr, "Reading a token: ");
#endif
      yychar = YYLEX;
    }

  /* Convert token to internal form (in yychar1) for indexing tables with */

  if (yychar <= 0)		/* This means end of input. */
    {
      yychar1 = 0;
      yychar = YYEOF;		/* Don't call YYLEX any more */

#if YYDEBUG != 0
      if (yydebug)
	fprintf(stderr, "Now at end of input.\n");
#endif
    }
  else
    {
      yychar1 = YYTRANSLATE(yychar);

#if YYDEBUG != 0
      if (yydebug)
	{
	  fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
	  /* Give the individual parser a way to print the precise meaning
	     of a token, for further debugging info.  */
#ifdef YYPRINT
	  YYPRINT (stderr, yychar, yylval);
#endif
	  fprintf (stderr, ")\n");
	}
#endif
    }

  yyn += yychar1;
  if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
    goto yydefault;

  yyn = yytable[yyn];

  /* yyn is what to do for this token type in this state.
     Negative => reduce, -yyn is rule number.
     Positive => shift, yyn is new state.
       New state is final state => don't bother to shift,
       just return success.
     0, or most negative number => error.  */

  if (yyn < 0)
    {
      if (yyn == YYFLAG)
	goto yyerrlab;
      yyn = -yyn;
      goto yyreduce;
    }
  else if (yyn == 0)
    goto yyerrlab;

  if (yyn == YYFINAL)
    YYACCEPT;

  /* Shift the lookahead token.  */

#if YYDEBUG != 0
  if (yydebug)
    fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
#endif

  /* Discard the token being shifted unless it is eof.  */
  if (yychar != YYEOF)
    yychar = YYEMPTY;

  *++yyvsp = yylval;
#ifdef YYLSP_NEEDED
  *++yylsp = yylloc;
#endif

  /* count tokens shifted since error; after three, turn off error status.  */
  if (yyerrstatus) yyerrstatus--;

  yystate = yyn;
  goto yynewstate;

/* Do the default action for the current state.  */
yydefault:

  yyn = yydefact[yystate];
  if (yyn == 0)
    goto yyerrlab;

/* Do a reduction.  yyn is the number of a rule to reduce with.  */
yyreduce:
  yylen = yyr2[yyn];
  if (yylen > 0)
    yyval = yyvsp[1-yylen]; /* implement default value of the action */

#if YYDEBUG != 0
  if (yydebug)
    {
      int i;

      fprintf (stderr, "Reducing via rule %d (line %d), ",
	       yyn, yyrline[yyn]);

      /* Print the symbols being reduced, and their result.  */
      for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
	fprintf (stderr, "%s ", yytname[yyrhs[i]]);
      fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
    }
#endif


  switch (yyn) {

case 1:
{ yylineno = -2; YYACCEPT; ;
    break;}
case 2:
{ start_scriptObj(); ;
    break;}
case 3:
{ end_scriptObj(); yylineno = -2; YYACCEPT; ;
    break;}
case 4:
{ if(parseState == FUNPARSE) { yyerror("illegal sentence!"); YYABORT;} YYACCEPT;;
    break;}
case 5:
{ if(parseState == FUNPARSE) { yyerror("illegal sentence!"); YYABORT;} YYACCEPT;;
    break;}
case 6:
{ if(parseState == FUNPARSE) { yyerror("illegal sentence!"); YYABORT;} YYACCEPT;;
    break;}
case 7:
{ start_scriptObj(); ;
    break;}
case 8:
{ end_scriptObj(); ;
    break;}
case 9:
{ start_scriptObj(); ;
    break;}
case 10:
{ end_scriptObj(); ;
    break;}
case 11:
{ create_scriptname(yyvsp[0].localsym); ;
    break;}
case 12:
{ create_varg('B'); ;
    break;}
case 13:
{ create_varg('E'); ;
    break;}
case 16:
{ create_sym(yyvsp[0].localsym); ;
    break;}
case 17:
{ create_sym(yyvsp[0].localsym); ;
    break;}
case 18:
{ if(parseState == EXPPARSE) { yyerror("illegal sentence!"); YYABORT;} ;
    break;}
case 19:
{ if(errorlevel<=ERROR) {YYABORT;} ;
    break;}
case 34:
{ create_break(); ;
    break;}
case 35:
{ create_continue(); ;
    break;}
case 36:
{ create_varg('B'); ;
    break;}
case 37:
{ create_varg('E'); ;
    break;}
case 38:
{ create_voidreturn(); ;
    break;}
case 39:
{ create_returnlocal(yyvsp[0].localsym); ;
    break;}
case 40:
{ create_returnlocal(yyvsp[0].localsym); ;
    break;}
case 41:
{ create_returnglobe(yyvsp[0].globesym); ;
    break;}
case 42:
{ create_returnglobe(yyvsp[0].globesym); ;
    break;}
case 44:
{ create_datatype('I'); ;
    break;}
case 45:
{ create_datatype('R'); ;
    break;}
case 46:
{ create_datatype('D'); ;
    break;}
case 47:
{ create_datatype('M'); ;
    break;}
case 48:
{ create_datatype('C'); ;
    break;}
case 49:
{ create_sym(yyvsp[0].localsym); ;
    break;}
case 50:
{ create_sym(yyvsp[0].localsym); ;
    break;}
case 52:
{pushcounter();;
    break;}
case 53:
{ create_dim(yyvsp[-4].localsym); ;
    break;}
case 54:
{pushcounter();;
    break;}
case 55:
{ create_dim(yyvsp[-4].localsym); ;
    break;}
case 56:
{pushcounter();;
    break;}
case 57:
{ create_dim(yyvsp[-4].globesym); ;
    break;}
case 58:
{pushcounter();;
    break;}
case 59:
{ create_dim(yyvsp[-4].globesym); ;
    break;}
case 60:
{ inccounter(yyvsp[0].number); ;
    break;}
case 61:
{ inccounter(yyvsp[0].number); ;
    break;}
case 66:
{ create_popstrsym(yyvsp[-2].localsym); ;
    break;}
case 67:
{ create_popglobesym(yyvsp[-2].globesym,'S'); ;
    break;}
case 68:
{ find_array(yyvsp[-5].localsym); create_doarray('S'); ;
    break;}
case 69:
{ find_array(yyvsp[-5].globesym); create_doarray('S'); ;
    break;}
case 70:
{ create_pushstr(yyvsp[0].string); ;
    break;}
case 71:
{ create_pushstrsym(yyvsp[0].localsym); ;
    break;}
case 72:
{ create_pushglobesym(yyvsp[0].globesym,'S'); ;
    break;}
case 73:
{ find_array(yyvsp[-3].localsym); create_doarray('s'); ;
    break;}
case 74:
{ find_array(yyvsp[-3].globesym); create_doarray('s'); ;
    break;}
case 76:
{ create_popdblsym(yyvsp[-2].localsym); ;
    break;}
case 77:
{ create_popglobesym(yyvsp[-2].globesym,'D'); ;
    break;}
case 78:
{ find_array(yyvsp[-5].localsym); create_doarray('N'); ;
    break;}
case 79:
{ find_array(yyvsp[-5].globesym); create_doarray('N'); ;
    break;}
case 80:
{ ;
    break;}
case 81:
{ create_pushdbl(yyvsp[0].number); ;
    break;}
case 82:
{ create_pushdblsym(yyvsp[0].localsym); ;
    break;}
case 83:
{ create_pushglobesym(yyvsp[0].globesym,'D'); ;
    break;}
case 84:
{ ;
    break;}
case 86:
{ find_array(yyvsp[-3].localsym); create_doarray('n'); ;
    break;}
case 87:
{ find_array(yyvsp[-3].globesym); create_doarray('n'); ;
    break;}
case 88:
{ create_dblbin('+'); ;
    break;}
case 89:
{ create_dblbin('-'); ;
    break;}
case 90:
{ create_dblbin('*'); ;
    break;}
case 91:
{ create_dblbin('/'); ;
    break;}
case 92:
{ create_dblbin('%'); ;
    break;}
case 93:
{ create_dblbin('^'); ;
    break;}
case 94:
{ create_dblbin('&'); ;
    break;}
case 95:
{ create_dblbin('|'); ;
    break;}
case 96:
{ create_dblbin('L'); ;
    break;}
case 97:
{ create_dblbin('R'); ;
    break;}
case 98:
{ create_negbin(); ;
    break;}
case 99:
{ create_negate(); ;
    break;}
case 100:
{ create_pushdblfun(); ;
    break;}
case 101:
{ prepare_scFun(); ;
    break;}
case 102:
{ create_pushdblscfun(); ;
    break;}
case 106:
{ prepare_scFun(); ;
    break;}
case 108:
{ create_pushstrfun(); create_popstrsym(yyvsp[-2].localsym);  ;
    break;}
case 109:
{ create_pushstrfun(); create_popglobesym(yyvsp[-2].globesym,'S'); ;
    break;}
case 110:
{ prepare_scFun(); ;
    break;}
case 111:
{ create_pushstrscfun(); create_popstrsym(yyvsp[-4].localsym);  ;
    break;}
case 112:
{ prepare_scFun(); ;
    break;}
case 113:
{ create_pushstrscfun(); create_popglobesym(yyvsp[-4].globesym,'S'); ;
    break;}
case 114:
{ create_function(yyvsp[-3].localsym); ;
    break;}
case 115:
{ create_function(yyvsp[-3].globesym); ;
    break;}
case 117:
{ create_dblarg(yyvsp[0].number); ;
    break;}
case 118:
{ create_dblarg(yyvsp[0].number); ;
    break;}
case 119:
{ create_strarg(yyvsp[0].string); ;
    break;}
case 120:
{ create_strarg(yyvsp[0].string); ;
    break;}
case 121:
{ create_dblsymarg(yyvsp[0].localsym); ;
    break;}
case 122:
{ create_dblsymarg(yyvsp[0].localsym); ;
    break;}
case 123:
{ create_strsymarg(yyvsp[0].localsym); ;
    break;}
case 124:
{ create_strsymarg(yyvsp[0].localsym); ;
    break;}
case 125:
{ create_globesymarg(yyvsp[0].globesym); ;
    break;}
case 126:
{ create_globesymarg(yyvsp[0].globesym); ;
    break;}
case 127:
{ create_globesymarg(yyvsp[0].globesym); ;
    break;}
case 128:
{ create_globesymarg(yyvsp[0].globesym); ;
    break;}
case 129:
{  
			pushname(yyvsp[-2].localsym);
			create_popdblsym(yyvsp[-2].localsym);
			pushgoto();
			create_pushdblsym(yyvsp[-2].localsym); 
		;
    break;}
case 130:
{
			create_dblrelop((yyvsp[0].number>0)?'{':'}'); 
			create_decide();
			pushlabel();
		;
    break;}
case 131:
{
			create_pushdbl(yyvsp[-2].number);
			create_pushdblsym(yyvsp[-8].localsym);
			create_dblbin('+');
	     	  	create_popdblsym(yyvsp[-8].localsym);
			swap();
			popgoto();
			poplabel(); 
		;
    break;}
case 134:
{ yylineno=-2; yyerror("without 'NEXT' keyword!"); YYABORT; ;
    break;}
case 135:
{ {yyval.number=1.0;} ;
    break;}
case 136:
{ {yyval.number=yyvsp[0].number;} ;
    break;}
case 137:
{ {yyval.number=yyvsp[0].number;}  ;
    break;}
case 138:
{ {yyval.number=yyvsp[0].number;}  ;
    break;}
case 139:
{ {yyval.number=-yyvsp[0].number;} ;
    break;}
case 140:
{
			Stackentry *en = pop();
			ASSERT( en != NULL );
			if( en->pointer != NULL ) delete (char *)(en->pointer);
			delete en; 
		;
    break;}
case 141:
{
 			Stackentry *en = pop();
			ASSERT( en != NULL );
			ASSERT( en->pointer != NULL );
			if(strcmp((char *)(en->pointer),yyvsp[0].localsym))
			{
				yyerror("'FOR' and 'NEXT' not match!"); 
				YYABORT;
			}
			delete (char *)(en->pointer);
			delete en;
		;
    break;}
case 142:
{
			create_decide();
			pushlabel();
		;
    break;}
case 143:
{
			pushlabel();
			swap();
			poplabel();
		;
    break;}
case 144:
{ poplabel(); ;
    break;}
case 149:
{ yylineno=-2; yyerror("without 'ENDIF' sentence!"); YYABORT; ;
    break;}
case 151:
{ create_boole('!'); ;
    break;}
case 152:
{ create_boole('|'); ;
    break;}
case 153:
{ create_boole('&'); ;
    break;}
case 154:
{ create_dblrelop('='); ;
    break;}
case 155:
{ create_dblrelop('!'); ;
    break;}
case 156:
{ create_dblrelop('<'); ;
    break;}
case 157:
{ create_dblrelop('{'); ;
    break;}
case 158:
{ create_dblrelop('>'); ;
    break;}
case 159:
{ create_dblrelop('}'); ;
    break;}
case 160:
{ create_strrelop('='); ;
    break;}
case 161:
{ create_strrelop('!'); ;
    break;}
case 163:
{ create_startlabel(); pushendlabel(); pushgoto(); ;
    break;}
case 164:
{
			create_decide();
			pushlabel();
		;
    break;}
case 165:
{
			swap();
			popgoto();
			poplabel(); 
		;
    break;}
case 166:
{ create_endlabel(); popstartlabel();  ;
    break;}
case 168:
{ yylineno=-2; yyerror("without 'ENDWHILE' keyword!"); YYABORT; ;
    break;}
case 169:
{ pushendlabel(); ;
    break;}
case 170:
{ create_pushswitch(); ;
    break;}
case 171:
{
			/* pop up the switch value */
			create_popswitch();
			/* create the label for break statement */
			create_endlabel();
		;
    break;}
case 174:
{
			create_match(yyvsp[-1].number);
			pushlabel();
		;
    break;}
case 175:
{ poplabel(); ;
    break;}
case 179:
{ yylineno=-2; yyerror("without 'ENDSWITCH' sentence!"); YYABORT; ;
    break;}
}
   /* the action file gets copied in in place of this dollarsign */


  yyvsp -= yylen;
  yyssp -= yylen;
#ifdef YYLSP_NEEDED
  yylsp -= yylen;
#endif

#if YYDEBUG != 0
  if (yydebug)
    {
      short *ssp1 = yyss - 1;
      fprintf (stderr, "state stack now");
      while (ssp1 != yyssp)
	fprintf (stderr, " %d", *++ssp1);
      fprintf (stderr, "\n");
    }
#endif

  *++yyvsp = yyval;

#ifdef YYLSP_NEEDED
  yylsp++;
  if (yylen == 0)
    {
      yylsp->first_line = yylloc.first_line;
      yylsp->first_column = yylloc.first_column;
      yylsp->last_line = (yylsp-1)->last_line;
      yylsp->last_column = (yylsp-1)->last_column;
      yylsp->text = 0;
    }
  else
    {
      yylsp->last_line = (yylsp+yylen-1)->last_line;
      yylsp->last_column = (yylsp+yylen-1)->last_column;
    }
#endif

  /* Now "shift" the result of the reduction.
     Determine what state that goes to,
     based on the state we popped back to
     and the rule number reduced by.  */

  yyn = yyr1[yyn];

  yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
    yystate = yytable[yystate];
  else
    yystate = yydefgoto[yyn - YYNTBASE];

  goto yynewstate;

yyerrlab:   /* here on detecting error */

  if (! yyerrstatus)
    /* If not already recovering from an error, report this error.  */
    {
      ++yynerrs;

#ifdef YYERROR_VERBOSE
      yyn = yypact[yystate];

      if (yyn > YYFLAG && yyn < YYLAST)
	{
	  int size = 0;
	  char *msg;
	  int x, count;

	  count = 0;
	  /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */
	  for (x = (yyn < 0 ? -yyn : 0);
	       x < (sizeof(yytname) / sizeof(char *)); x++)
	    if (yycheck[x + yyn] == x)
	      size += strlen(yytname[x]) + 15, count++;
	  msg = (char *) malloc(size + 15);
	  if (msg != 0)
	    {
	      strcpy(msg, "parse error");

	      if (count < 5)
		{
		  count = 0;
		  for (x = (yyn < 0 ? -yyn : 0);
		       x < (sizeof(yytname) / sizeof(char *)); x++)
		    if (yycheck[x + yyn] == x)
		      {
			strcat(msg, count == 0 ? ", expecting `" : " or `");
			strcat(msg, yytname[x]);
			strcat(msg, "'");
			count++;
		      }
		}
	      yyerror(msg);
	      free(msg);
	    }
	  else
	    yyerror ("parse error; also virtual memory exceeded");
	}
      else
#endif /* YYERROR_VERBOSE */
	yyerror("parse error");
    }

  goto yyerrlab1;
yyerrlab1:   /* here on error raised explicitly by an action */

  if (yyerrstatus == 3)
    {
      /* if just tried and failed to reuse lookahead token after an error, discard it.  */

      /* return failure if at end of input */
      if (yychar == YYEOF)
	YYABORT;

#if YYDEBUG != 0
      if (yydebug)
	fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
#endif

      yychar = YYEMPTY;
    }

  /* Else will try to reuse lookahead token
     after shifting the error token.  */

  yyerrstatus = 3;		/* Each real token shifted decrements this */

  goto yyerrhandle;

yyerrdefault:  /* current state does not do anything special for the error token. */

#if 0
  /* This is wrong; only states that explicitly want error tokens
     should shift them.  */
  yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  if (yyn) goto yydefault;
#endif

yyerrpop:   /* pop the current state because it cannot handle the error token */

  if (yyssp == yyss) YYABORT;
  yyvsp--;
  yystate = *--yyssp;
#ifdef YYLSP_NEEDED
  yylsp--;
#endif

#if YYDEBUG != 0
  if (yydebug)
    {
      short *ssp1 = yyss - 1;
      fprintf (stderr, "Error: state stack now");
      while (ssp1 != yyssp)
	fprintf (stderr, " %d", *++ssp1);
      fprintf (stderr, "\n");
    }
#endif

yyerrhandle:

  yyn = yypact[yystate];
  if (yyn == YYFLAG)
    goto yyerrdefault;

  yyn += YYTERROR;
  if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
    goto yyerrdefault;

  yyn = yytable[yyn];
  if (yyn < 0)
    {
      if (yyn == YYFLAG)
	goto yyerrpop;
      yyn = -yyn;
      goto yyreduce;
    }
  else if (yyn == 0)
    goto yyerrpop;

  if (yyn == YYFINAL)
    YYACCEPT;

#if YYDEBUG != 0
  if (yydebug)
    fprintf(stderr, "Shifting error token, ");
#endif

  *++yyvsp = yylval;
#ifdef YYLSP_NEEDED
  *++yylsp = yylloc;
#endif

  yystate = yyn;
  goto yynewstate;
}
